package com.linhh.mall.center.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * @Author linhh
 * @Date 2022 10 25 22 15
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Table(name = "product_info")
public class ProductInfo extends BaseEntity implements Serializable {
    /**
     * 产品名称
     */
    @Column(name = "product_name", length = 200)
    private String productName;

    /**
     * 店铺id
     */
    @Column(name = "shop_id", length = 10)
    private Integer shopId;

    /**
     * 商品分类1
     */
    @Column(name = "classify1", length = 20)
    private Integer classify1;

    /**
     * 商品分类2
     */
    @Column(name = "classify2", length = 20)
    private Integer classify2;

    /**
     * 商品分类3
     */
    @Column(name = "classify3", length = 20)
    private Integer classify3;

    /**
     * 模板
     */
    @Column(name = "template", length = 10)
    private String template;

    /**
     * 品牌
     */
    @Column(name = "brand", length = 10)
    private String brand;

    /**
     * 副标题
     */
    @Column(name = "subtitle", length = 200)
    private String subtitle;

    /**
     * 包装列表
     */
    @Column(name = "packlist", length = 500)
    private String packlist;

    /**
     * 售后服务
     */
    @Column(name = "afterservice", length = 500)
    private String afterservice;

    /**
     * 商品状态 value="0"未申请、value="1"申请中、value="2"审核通过、value="3"已驳回
     */
    @Column(name = "status", length = 1)
    private String status;

    private List<GoodsInfo> goodsList;

}
